<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EasyQtSql: EasyQtSql::NonQueryResult Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EasyQtSql
   </div>
   <div id="projectbrief">Easy SQL data access helper for QtSql</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_easy_qt_sql_1_1_non_query_result.htm','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_easy_qt_sql_1_1_non_query_result-members.htm">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">EasyQtSql::NonQueryResult Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>QSqlQuery wrapper for non-select query results reading.  
 <a href="class_easy_qt_sql_1_1_non_query_result.htm#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_easy_qt_sql_8h_source.htm">EasyQtSql.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a641a361691755b807702b69bce942999"><td class="memItemLeft" align="right" valign="top">QSqlQuery &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_qt_sql_1_1_non_query_result.htm#a641a361691755b807702b69bce942999">unwrappedQuery</a> ()</td></tr>
<tr class="memdesc:a641a361691755b807702b69bce942999"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns reference on wrapped QSqlQuery.  <a href="#a641a361691755b807702b69bce942999">More...</a><br /></td></tr>
<tr class="separator:a641a361691755b807702b69bce942999"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6a1fb30bf4bf0757672d4fe18c925ee"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_qt_sql_1_1_non_query_result.htm#ae6a1fb30bf4bf0757672d4fe18c925ee">numRowsAffected</a> () const</td></tr>
<tr class="memdesc:ae6a1fb30bf4bf0757672d4fe18c925ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of rows affected by the result's SQL statement, or -1 if it cannot be determined.  <a href="#ae6a1fb30bf4bf0757672d4fe18c925ee">More...</a><br /></td></tr>
<tr class="separator:ae6a1fb30bf4bf0757672d4fe18c925ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04790b33b8b424de56adac3a2a52b24d"><td class="memItemLeft" align="right" valign="top">QVariant&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_qt_sql_1_1_non_query_result.htm#a04790b33b8b424de56adac3a2a52b24d">lastInsertId</a> () const</td></tr>
<tr class="memdesc:a04790b33b8b424de56adac3a2a52b24d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the object ID of the most recent inserted row if the database supports it.  <a href="#a04790b33b8b424de56adac3a2a52b24d">More...</a><br /></td></tr>
<tr class="separator:a04790b33b8b424de56adac3a2a52b24d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a286ef17fc56de74af26d384b017f02dd"><td class="memItemLeft" align="right" valign="top">QSqlError&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_qt_sql_1_1_non_query_result.htm#a286ef17fc56de74af26d384b017f02dd">lastError</a> () const</td></tr>
<tr class="memdesc:a286ef17fc56de74af26d384b017f02dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns error information about the last error (if any) that occurred with this query.  <a href="#a286ef17fc56de74af26d384b017f02dd">More...</a><br /></td></tr>
<tr class="separator:a286ef17fc56de74af26d384b017f02dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accc70f0c2199629ce062feb8de0c2fe7"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_qt_sql_1_1_non_query_result.htm#accc70f0c2199629ce062feb8de0c2fe7">lastQuery</a> () const</td></tr>
<tr class="memdesc:accc70f0c2199629ce062feb8de0c2fe7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the text of the current query being used, or an empty string if there is no current query text.  <a href="#accc70f0c2199629ce062feb8de0c2fe7">More...</a><br /></td></tr>
<tr class="separator:accc70f0c2199629ce062feb8de0c2fe7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e82dd968f0b371514243e825a5b7f86"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_qt_sql_1_1_non_query_result.htm#a4e82dd968f0b371514243e825a5b7f86">executedQuery</a> () const</td></tr>
<tr class="memdesc:a4e82dd968f0b371514243e825a5b7f86"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the last query that was successfully executed.  <a href="#a4e82dd968f0b371514243e825a5b7f86">More...</a><br /></td></tr>
<tr class="separator:a4e82dd968f0b371514243e825a5b7f86"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a6efef52d7a939622bbc934ff6b90ffe0"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_qt_sql_1_1_non_query_result.htm#a6efef52d7a939622bbc934ff6b90ffe0">Database</a></td></tr>
<tr class="separator:a6efef52d7a939622bbc934ff6b90ffe0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49982aa325e19f0956d42fde9132caa2"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_qt_sql_1_1_non_query_result.htm#a49982aa325e19f0956d42fde9132caa2">Transaction</a></td></tr>
<tr class="separator:a49982aa325e19f0956d42fde9132caa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e578aaf2c9f489c431c988b94452222"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_qt_sql_1_1_non_query_result.htm#a5e578aaf2c9f489c431c988b94452222">InsertQuery</a></td></tr>
<tr class="separator:a5e578aaf2c9f489c431c988b94452222"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf09a5441ccc57c5e2a73a97d2dd20ba"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_qt_sql_1_1_non_query_result.htm#aaf09a5441ccc57c5e2a73a97d2dd20ba">UpdateQuery</a></td></tr>
<tr class="separator:aaf09a5441ccc57c5e2a73a97d2dd20ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7243c345a92d89c03c2c6bfe85b5505"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_qt_sql_1_1_non_query_result.htm#ae7243c345a92d89c03c2c6bfe85b5505">DeleteQuery</a></td></tr>
<tr class="separator:ae7243c345a92d89c03c2c6bfe85b5505"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>QSqlQuery wrapper for non-select query results reading. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a4e82dd968f0b371514243e825a5b7f86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e82dd968f0b371514243e825a5b7f86">&#9670;&nbsp;</a></span>executedQuery()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString EasyQtSql::NonQueryResult::executedQuery </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the last query that was successfully executed. </p>
<p>Wrapper over QSqlQuery::executedQuery() </p>

</div>
</div>
<a id="a286ef17fc56de74af26d384b017f02dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a286ef17fc56de74af26d384b017f02dd">&#9670;&nbsp;</a></span>lastError()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QSqlError EasyQtSql::NonQueryResult::lastError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns error information about the last error (if any) that occurred with this query. </p>
<p>Wrapper over QSqlQuery::lastError() </p>

</div>
</div>
<a id="a04790b33b8b424de56adac3a2a52b24d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04790b33b8b424de56adac3a2a52b24d">&#9670;&nbsp;</a></span>lastInsertId()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QVariant EasyQtSql::NonQueryResult::lastInsertId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the object ID of the most recent inserted row if the database supports it. </p>
<p>Wrapper over QSqlQuery::lastInsertId() </p>

</div>
</div>
<a id="accc70f0c2199629ce062feb8de0c2fe7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#accc70f0c2199629ce062feb8de0c2fe7">&#9670;&nbsp;</a></span>lastQuery()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QString EasyQtSql::NonQueryResult::lastQuery </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the text of the current query being used, or an empty string if there is no current query text. </p>
<p>Wrapper over QSqlQuery::lastQuery() </p>

</div>
</div>
<a id="ae6a1fb30bf4bf0757672d4fe18c925ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6a1fb30bf4bf0757672d4fe18c925ee">&#9670;&nbsp;</a></span>numRowsAffected()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int EasyQtSql::NonQueryResult::numRowsAffected </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the number of rows affected by the result's SQL statement, or -1 if it cannot be determined. </p>
<p>Wrapper over QSqlQuery::numRowsAffected() </p>

</div>
</div>
<a id="a641a361691755b807702b69bce942999"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a641a361691755b807702b69bce942999">&#9670;&nbsp;</a></span>unwrappedQuery()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QSqlQuery&amp; EasyQtSql::NonQueryResult::unwrappedQuery </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns reference on wrapped QSqlQuery. </p>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="a6efef52d7a939622bbc934ff6b90ffe0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6efef52d7a939622bbc934ff6b90ffe0">&#9670;&nbsp;</a></span>Database</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="class_easy_qt_sql_1_1_database.htm">Database</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ae7243c345a92d89c03c2c6bfe85b5505"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7243c345a92d89c03c2c6bfe85b5505">&#9670;&nbsp;</a></span>DeleteQuery</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="class_easy_qt_sql_1_1_delete_query.htm">DeleteQuery</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a5e578aaf2c9f489c431c988b94452222"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e578aaf2c9f489c431c988b94452222">&#9670;&nbsp;</a></span>InsertQuery</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="class_easy_qt_sql_1_1_insert_query.htm">InsertQuery</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a49982aa325e19f0956d42fde9132caa2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49982aa325e19f0956d42fde9132caa2">&#9670;&nbsp;</a></span>Transaction</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="class_easy_qt_sql_1_1_transaction.htm">Transaction</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aaf09a5441ccc57c5e2a73a97d2dd20ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf09a5441ccc57c5e2a73a97d2dd20ba">&#9670;&nbsp;</a></span>UpdateQuery</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="class_easy_qt_sql_1_1_update_query.htm">UpdateQuery</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>EasyQtSql/<a class="el" href="_easy_qt_sql_8h_source.htm">EasyQtSql.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_easy_qt_sql.htm">EasyQtSql</a></li><li class="navelem"><a class="el" href="class_easy_qt_sql_1_1_non_query_result.htm">NonQueryResult</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
